BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balxml::EncodingStyle Struct Reference

#include <balxml_encodingstyle.h>

Public Types

enum  Value {
  COMPACT = 0 , PRETTY = 1 , e_COMPACT = COMPACT , e_PRETTY = PRETTY ,
  BAEXML_COMPACT = COMPACT , BAEXML_PRETTY = PRETTY
}
 
enum  { NUM_ENUMERATORS = 2 }
 

Static Public Member Functions

static const char * toString (Value value)
 
static int fromString (Value *result, const char *string, int stringLength)
 
static int fromString (Value *result, const bsl::string_view &string)
 
static int fromInt (Value *result, int number)
 
static bsl::ostream & print (bsl::ostream &stream, Value value)
 

Static Public Attributes

static const char CLASS_NAME []
 
static const bdlat_EnumeratorInfo ENUMERATOR_INFO_ARRAY []
 

Detailed Description

Enumeration of encoding style (COMPACT or PRETTY). This struct is generated using bas_codegen.pl called by balxml/code_from_xsd.pl

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
NUM_ENUMERATORS 

◆ Value

Enumerator
COMPACT 
PRETTY 
e_COMPACT 
e_PRETTY 
BAEXML_COMPACT 
BAEXML_PRETTY 

Member Function Documentation

◆ fromInt()

static int balxml::EncodingStyle::fromInt ( Value result,
int  number 
)
static

Load into the specified result the enumerator matching the specified number. Return 0 on success, and a non-zero value with no effect on result otherwise (i.e., number does not match any enumerator).

◆ fromString() [1/2]

int balxml::EncodingStyle::fromString ( Value result,
const bsl::string_view string 
)
inlinestatic

Load into the specified result the enumerator matching the specified string. Return 0 on success, and a non-zero value with no effect on result otherwise (i.e., string does not match any enumerator).

◆ fromString() [2/2]

static int balxml::EncodingStyle::fromString ( Value result,
const char *  string,
int  stringLength 
)
static

Load into the specified result the enumerator matching the specified string of the specified stringLength. Return 0 on success, and a non-zero value with no effect on result otherwise (i.e., string does not match any enumerator).

◆ print()

bsl::ostream & balxml::EncodingStyle::print ( bsl::ostream &  stream,
EncodingStyle::Value  value 
)
inlinestatic

Write to the specified stream the string representation of the specified enumeration value. Return a reference to the modifiable stream.

◆ toString()

static const char * balxml::EncodingStyle::toString ( Value  value)
static

Return the string representation exactly matching the enumerator name corresponding to the specified enumeration value.

Member Data Documentation

◆ CLASS_NAME

const char balxml::EncodingStyle::CLASS_NAME[]
static

◆ ENUMERATOR_INFO_ARRAY

const bdlat_EnumeratorInfo balxml::EncodingStyle::ENUMERATOR_INFO_ARRAY[]
static

The documentation for this struct was generated from the following file: