|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.codegen.kernel.CodeGeneratorHelper
ptolemy.codegen.c.kernel.CCodeGeneratorHelper
ptolemy.codegen.c.actor.lib.io.FileReader
public class FileReader
A helper class for ptolemy.actor.lib.io.FileReader.
Green (mankit) |
Green (mankit) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
---|
CodeGeneratorHelper.Channel, CodeGeneratorHelper.VariableScope |
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
---|
NamedObj.ContainedObjectsIterator |
Field Summary |
---|
Fields inherited from class ptolemy.codegen.kernel.CodeGeneratorHelper |
---|
_codeGenerator, _codeStream, _eol, _INDENT1, _INDENT2, _parseTreeCodeGenerator, _portConversions, _referencedParameters |
Fields inherited from class ptolemy.kernel.util.NamedObj |
---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary | |
---|---|
FileReader(FileReader actor)
Construct the LineReader helper. |
Method Summary | |
---|---|
java.lang.String |
generateInitializeCode()
Generate initialization code. |
static java.lang.String |
getFileName(FileOrURLAccessor fileOrURL)
Get the file name from a parameter and convert backward slashes to forward slashes. |
static java.lang.String |
getFileName(FilePortParameter fileOrURL)
Get the file name from a parameter and convert backward slashes to forward slashes. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileReader(FileReader actor)
actor
- the associated actor.Method Detail |
---|
public java.lang.String generateInitializeCode() throws IllegalActionException
initBlock
from AudioReader.c and pass the file path
string as an argument to code block. Replace macros with their values
and return the processed code string.
generateInitializeCode
in interface ComponentCodeGenerator
generateInitializeCode
in class CodeGeneratorHelper
IllegalActionException
- If the file path parameter is invalid
or the code stream encounters an error in processing the specified code
block(s).public static java.lang.String getFileName(FileOrURLAccessor fileOrURL) throws IllegalActionException
fileOrURL
- The file name or URL.
IllegalActionException
- If the file cannot be found.public static java.lang.String getFileName(FilePortParameter fileOrURL) throws IllegalActionException
fileOrURL
- The file name or URL.
IllegalActionException
- If the file cannot be found.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |